class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :nick_name,
        :email,
        :mobile,
        :encrypted_fetion_password,
        :encrypted_password,
        :pk
      t.string :sex, :default => 'unknown'
      t.integer :user_tool_settings_count, :default => 0
      t.integer :sms_count, :default => 0
      t.integer :emails_count, :default => 0
      t.timestamp :login_at
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
